# -*- encoding:utf-8 -*-
'''
	pipelines_txt.py
	======================
	@descript: 
	@copyright:chinasoft
	@author:zhangsiqi
	@date: 2021-01-26 16:49
	@version:v1.0
'''
import  csv
class Moviedy90Pipeline(object):
    def process_item(self, item, spider):
        with open("content.csv", 'a+',encoding='utf-8',newline='') as f:
            writer= csv.writer(f)
            for i in range(len(item['name'])):
                line=[item['name'][i],item['pic_url'][i], item['release_type'][i], item['release_time'][i]]
                writer.writerow(line)
            pass
        return item
